package com.yuan.pay_mall.pojo;

import lombok.Data;

/**
 * 传入redis中存储的信息，商品其他信息可能会发生变化就从数据库中查询
 */
@Data

public class Cart {

    private Integer productId;//商品id
    private Integer quantity; //商品数量
    private Boolean productSelected; //商品是否选中

    public Cart() {
    }

    public Cart(Integer productId, Integer quantity, Boolean productSelected) {
        this.productId = productId;
        this.quantity = quantity;
        this.productSelected = productSelected;
    }
}


